package cn.txm.org.service.impl;

import cn.txm.basic.service.impl.BaseServiceImpl;
import cn.txm.org.domain.SystemDictionaryDetail;
import cn.txm.org.mapper.SystemDictionaryDetailMapper;
import cn.txm.org.service.ISystemDictionaryDetailService;
import cn.txm.pet.domain.PetType;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SystemDictionaryDetailServiceImpl extends BaseServiceImpl<SystemDictionaryDetail> implements ISystemDictionaryDetailService {

    @Autowired
    SystemDictionaryDetailMapper systemDictionaryDetailMapper;

    /**
     * 通过数据字典类型的sn查询数据字典明细数据（一般用来做下拉框）
     * @param sn
     * @return
     */
    @Override
    public List<SystemDictionaryDetail> loadDetailbysn(String sn) {
        return systemDictionaryDetailMapper.loadDetailbysn(sn);
    }

    /**
     * 查询宠物pet_type品种
     * @return
     */
    @Override
    public List<PetType> loadtype() {
        return systemDictionaryDetailMapper.loadtype();
    }
}
